package com.ldp.designpatterns.study.factory.abstractFactory.factory;

import com.ldp.designpatterns.study.factory.abstractFactory.impl.AmericanCoffee;
import com.ldp.designpatterns.study.factory.abstractFactory.impl.RedColor;
import com.ldp.designpatterns.study.factory.abstractFactory.service.Coffee;
import com.ldp.designpatterns.study.factory.abstractFactory.service.Color;
import org.springframework.stereotype.Service;

/**
 * @ClassName AmericanCoffeeFactory
 * @Description 工厂方法模式：——实现工厂接口——美式咖啡接口
 * @Author lindipei
 * @Date 2023/10/13 15:13
 */
@Service
public class AmericanCoffeeFactory implements CoffeeFactory {
    @Override
    public Coffee getCoffee() {
        return new AmericanCoffee();
    }

    @Override
    public Color getColor() {
        return new RedColor();
    }
}
